<table width="750" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <!--<td colspan="3"><img src="img/Top.jpg" border="0"></td>-->
    <!-- <td colspan="3"><img src="img/Topo.png" border="0"></td> -->
  </tr>
  <tr>
    <td width="2" height="100%" background="img/lateral_spm.jpg"></td>
    <!--<td width="2" height="100%" background="img/lateral.jpg"></td>-->
    <td width="746" valign="top">
<script language="javascript" type="text/javascript" src="library/jquery.js"></script>
<script language="javascript" type="text/javascript" src="library/jquery.numeric.js"></script>
<script language="javascript" type="text/javascript" src="library/jquery.maskedinput.js"></script>
<script language="javascript" type="text/javascript" src="library/jquery.maskMoney.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
    $(".num").numeric();
    $(".data").mask("99/99/99");
    $(".tel").mask("99-9999-9999");
    $(".valor").maskMoney({symbol: "R$", decimal: ",",thousands: "."});
    $(".prot").mask("9999999999999");
    $(".dup").mask("99");
    $(".cnpj").mask("99999999/9999-99");
});
function pesq(valor,e) {
    if (valor.length>4) {
	var whichCode;
	if (!e) var e = window.event;
	if (e.keyCode) whichCode = e.keyCode;
	else if (e.which) whichCode = e.which;
        if((whichCode >= 33 && whichCode <= 126) || whichCode == 8) {
            url="ajax.jsp?tipo=proto&parm=" + valor;
            ajaxx(url);
        }
    }
    if(valor.length<5)
        document.getElementById('busca').style.visibility = 'hidden';
}
function ajaxx(url) {
    req = null;
    if (window.XMLHttpRequest) {
        req = new XMLHttpRequest();
    } else if (window.ActiveXObject) {
        try {
            req = new ActiveXObject("Msxml2.XMLHTTP");
        } catch (e1) {
            try {
                req = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e2) {
                // Unable to create an XMLHttpRequest with ActiveX
            }
        }
    }
    if (req) {
        req.onreadystatechange = function(){
            if (req.readyState == 4) { // apenas quando o estado for "completado"
                if (req.status ==200) { // apenas se o servidor retornar "OK"
                    document.getElementById('busca').innerHTML = req.responseText;
                    document.getElementById('busca').style.visibility = 'visible';
                } else {
                    alert("N&atilde;o foi poss&iacute;vel obter os Protocolos:\n" + req.statusText);
                }
            }
        };
        req.open('GET',url,true);
        req.send(null);
    }
}
function redireciona(destino) {
    self.location="verprocesso.jsp?protocolo=" + document.getElementById(destino).value;
}
</script>
<center>Busca r&aacute;pida<br>
<input type="text" onKeyUp="pesq(this.value,event);" maxlength="13" style="width:140px" class="num"><div id="busca"></div></center><hr width="80%" size="3">
<!-- Aqui comeca o corpo da pagina -->